# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=simple-lan-scan
pkgver=1.0
pkgrel=8
groups=('blackarch' 'blackarch-scanner' 'blackarch-recon' 'blackarch-networking')
pkgdesc='A simple python script that leverages scapy for discovering live hosts on a network.'
arch=('any')
url='http://packetstormsecurity.com/files/97353/Simple-LAN-Scanner-1.0.html'
license=('custom:unknown')
depends=('python2' 'python2-scapy')
source=("$pkgname::https://dl.packetstormsecurity.net/UNIX/scanners/simple_lan_scan.py.txt")
sha512sums=('744499607f9f4bba9136c33ff1704ac02fed93275be7fcda89584a2e72b189f535dbed9597c18a9e35da38a43f71dd8d466d19555252b190492d668313d54949')

prepare() {
  sed -i 's|/usr/bin/python|/usr/bin/python2|' $pkgname
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

